package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.Pos;
import com.bcinfo.iccard.model.SerialNumber;

public interface PosMapper {
    int deleteByPrimaryKey(Long posId);

    int insert(Pos record);

    int insertSelective(Pos record);

    Pos selectByPrimaryKey(Long posId);

    int updateByPrimaryKeySelective(Pos record);

    int updateByPrimaryKey(Pos record);
    
    Pos loadByCode(@Param(value="posCode")String posCode,@Param(value="merchantCode") String merchantCode);
    
    int deleteByMerchant(long merchantId);
    
    int insertSerialNum(SerialNumber sn);

    int deleteByMerchantKey(Long merchantId);
    
    List<Pos> findByMerchant(Long merchantId);
    
}